Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated usage of environment #202124

Conversation

miloszmarcinkowski
Copy link
Contributor

@miloszmarcinkowski miloszmarcinkowski commented Nov 28, 2024

Closes #200720

Summary

This PR removes deprecated usage of environment property. The code isn't used anymore, therefore can be removed safely.

/**
* The environment service is only available for a transition period and will
* be replaced by display specific extension points.
* @deprecated
* @removeBy 8.8.0
*/
environment: EnvironmentSetup;

@miloszmarcinkowski miloszmarcinkowski added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Nov 28, 2024
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
apm 38.1KB 38.1KB -40.0B
Unknown metric groups

References to deprecated APIs

id before after diff
apm 33 32 -1

Unreferenced deprecated APIs

id before after diff
home 1 2 +1

@miloszmarcinkowski miloszmarcinkowski marked this pull request as ready for review November 28, 2024 13:56
@miloszmarcinkowski miloszmarcinkowski requested a review from a team as a code owner November 28, 2024 13:56
Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Nov 28, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@miloszmarcinkowski miloszmarcinkowski merged commit 979f3e8 into elastic:main Nov 28, 2024
17 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12070832996

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 28, 2024
Closes elastic#200720

## Summary

This PR removes deprecated usage of `environment` property. The code
isn't used anymore, therefore can be removed safely.

https://github.com/elastic/kibana/blob/d0d33aab38009fe19cb18bacd3bf1943b5a8043f/src/plugins/home/public/plugin.ts#L202-L208
(cherry picked from commit 979f3e8)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 28, 2024
…202183)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Remove deprecated usage of `environment`
(#202124)](#202124)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Milosz
Marcinkowski","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-28T14:29:54Z","message":"Remove
deprecated usage of `environment` (#202124)\n\nCloses #200720\r\n\r\n##
Summary\r\n\r\nThis PR removes deprecated usage of `environment`
property. The code\r\nisn't used anymore, therefore can be removed
safely.\r\n\r\n\r\nhttps://github.com/elastic/kibana/blob/d0d33aab38009fe19cb18bacd3bf1943b5a8043f/src/plugins/home/public/plugin.ts#L202-L208","sha":"979f3e8ac492dd4cb7f77793ae54aa094edf99be","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services"],"title":"Remove
deprecated usage of
`environment`","number":202124,"url":"https://github.com/elastic/kibana/pull/202124","mergeCommit":{"message":"Remove
deprecated usage of `environment` (#202124)\n\nCloses #200720\r\n\r\n##
Summary\r\n\r\nThis PR removes deprecated usage of `environment`
property. The code\r\nisn't used anymore, therefore can be removed
safely.\r\n\r\n\r\nhttps://github.com/elastic/kibana/blob/d0d33aab38009fe19cb18bacd3bf1943b5a8043f/src/plugins/home/public/plugin.ts#L202-L208","sha":"979f3e8ac492dd4cb7f77793ae54aa094edf99be"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202124","number":202124,"mergeCommit":{"message":"Remove
deprecated usage of `environment` (#202124)\n\nCloses #200720\r\n\r\n##
Summary\r\n\r\nThis PR removes deprecated usage of `environment`
property. The code\r\nisn't used anymore, therefore can be removed
safely.\r\n\r\n\r\nhttps://github.com/elastic/kibana/blob/d0d33aab38009fe19cb18bacd3bf1943b5a8043f/src/plugins/home/public/plugin.ts#L202-L208","sha":"979f3e8ac492dd4cb7f77793ae54aa094edf99be"}}]}]
BACKPORT-->

Co-authored-by: Milosz Marcinkowski <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
Closes elastic#200720

## Summary

This PR removes deprecated usage of `environment` property. The code
isn't used anymore, therefore can be removed safely.


https://github.com/elastic/kibana/blob/d0d33aab38009fe19cb18bacd3bf1943b5a8043f/src/plugins/home/public/plugin.ts#L202-L208
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Fix deprecated usage of environment
4 participants